$OpenBSD: patch-vcl_Library_vclplug_gen_mk,v 1.2 2015/09/29 16:10:48 robert Exp $
--- vcl/Library_vclplug_gen.mk.orig.port	Thu Sep 17 15:33:12 2015
+++ vcl/Library_vclplug_gen.mk	Sun Sep 27 12:18:17 2015
@@ -142,10 +142,10 @@ $(eval $(call gb_Library_add_libs,vclplug_gen,\
 endif
 endif # USE_XINERAMA
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_add_libs,vclplug_gen,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
 ))
 endif
